package com.ztesoft.test.service.processer;

import java.io.File;

import com.xiaoleilu.hutool.CharsetUtil;
import com.xiaoleilu.hutool.DateUtil;
import com.xiaoleilu.hutool.SecureUtil;
import com.xiaoleilu.hutool.Setting;

public class demo {
	public static StringBuffer a = new StringBuffer("");

	public static void add() {
		a.append("a;\n");
	}

	public static void main(String[] args) {
		/*
		 * System.out.println("58 华新周边 保姆采集启动："); for (int i = 0; i < 10; i++) {
		 * add(); } System.out.println(a.toString()); String str =
		 * System.getProperty("line.separator"); System.out.println(str);
		 * System.out.println(DateUtil.now().replace(":", "-"));
		 */
		File f = new File("resouce/config/value.config");
		Setting s = new Setting(f, CharsetUtil.UTF_8, false);
		String[] ss = s.getStrings("getemails");
		for (String a : ss)
			System.out.println(a);
		String b=SecureUtil.base64("aaaa", CharsetUtil.UTF_8);
		System.out.println(b);
		System.out.println(s.getString("email_passwd_base64"));
		System.out.println(SecureUtil.decodeBase64(b, CharsetUtil.UTF_8));
	}

}
